/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

var i=0;

function getIndex(){
    if(i==8){
        i=0;
    } else{
        return i++;
    }
}